package com.define.ssh.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/***
 * 监控结果表
 * @author sc
 *
 */
@Entity
@Table(name = "m_warn_detail")
public class MWarnDetail implements java.io.Serializable {

	// Fields

	private Long  id;
	private Integer targetid;
	private Integer netid;
	private Integer stype;
	private Integer mresult;
	private Date updatetime;
	
	private String sname;
	private String describe;
	private String warnthreshold;
	private String merror;

	private String pname;
	// Constructors

	/** default constructor */
	public MWarnDetail() {
	}

	@GeneratedValue(generator="generator")
	@Id
	@GenericGenerator(name = "generator", strategy = "identity") 
	@Column(name = "id", unique = true, nullable = false, precision = 20, scale = 0)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	// Property accessors
	@Column(name = "targetid", unique = true, nullable = false, insertable = true, updatable = true)
	public Integer getTargetid() {
		return this.targetid;
	}

	public void setTargetid(Integer targetid) {
		this.targetid = targetid;
	}

	@Column(name = "netid", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getNetid() {
		return this.netid;
	}

	public void setNetid(Integer netid) {
		this.netid = netid;
	}

	@Column(name = "stype", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getStype() {
		return this.stype;
	}

	public void setStype(Integer stype) {
		this.stype = stype;
	}

	@Column(name = "mresult", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getMresult() {
		return this.mresult;
	}

	public void setMresult(Integer mresult) {
		this.mresult = mresult;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "updatetime", unique = false, nullable = false, insertable = true, updatable = true, length = 19)
	public Date getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
	@Transient
	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}
	
	
	
	
	@Column(name = "merror", unique = false, nullable = false, insertable = true, updatable = true, length = 60)
	public String getMerror() {
		return merror;
	}

	public void setMerror(String merror) {
		this.merror = merror;
	}

	@Transient
	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}
	
	
	@Transient
	public String getWarnthreshold() {
		return warnthreshold;
	}

	public void setWarnthreshold(String warnthreshold) {
		this.warnthreshold = warnthreshold;
	}
	@Transient
	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	
	
}